<#import "/spring.ftl" as spring />
<html>
<head>
	<link rel="stylesheet" type="text/css" href="<@spring.url "/content_pane.css" />" />
	<title>Transaction Details</title>
</head>
<body>
<#include "inspectorTopNav.ftl" />

	<h1>Payment Transaction Details</h1>
	
	<p>The following information represents the details of your transaction as stored in your Amazon account:</p>
	
	<table cellspacing="0" border="0" cellpadding="2">
	<tr>
		<td>TransactionId:</td><td>${transaction.id!}</td>
	</tr>
	<tr>
		<td>Status:</td><td>${transaction.status!}</td>
	</tr>
	<tr>
		<td>Recipient:</td><td>${transaction.recipientName!}</td>
	</tr>
	<tr>
		<td>Payer:</td><td>${transaction.payerName!}</td>
	</tr>
	<tr>
		<td>Date Received:</td><td>${(transaction.dateReceived.time?datetime)!}</td>
	</tr>
	<tr>
		<td>Date Completed:</td><td>${(transaction.dateCompleted.time?datetime)!}</td>
	</tr>
	<tr>
		<td>Payment Amount:</td><td>${(transaction.transactionAmount?string.currency)!}</td>
	</tr>
	<tr>
		<td>Fees Paid:</td><td>${(transaction.fees?string.currency)!}</td>
	</tr>
	<tr>
		<td>Payment Type:</td><td>${transaction.paymentType!}</td>
	</tr>
	
	<#if transaction.transactionHistory??>
		<tr>
			<td colspan="2">
				Transaction History: <br />
				<ul>
				<#list transaction.transactionHistory as history>
					<li>${(history.date.time?datetime)!} - ${history.status!}</li>
				</#list>
				</ul>
			</td>
		</tr>
	</#if>
	
	</table>
	
	
</body>
</html>
